package _15接口应用综合案例;
//乒乓球运动员：继承父类，实现接口
public class PingPangPlayer extends SportMan implements Learning{

    public PingPangPlayer() {
    }

    public PingPangPlayer(String name, int age) {
        super(name, age);
    }

    @Override
    public void practice() {
        System.out.println(getName()+","+getAge()+",正在训练发球");
    }

    @Override
    public void learnEnglish() {
        System.out.println("乒乓球运动员白天训练，晚上学英语");
    }
}
